package com.itany.corejava.day15;

import java.io.InputStream;
import java.net.URL;

public class TestPath {

    public static void main(String[] args) {

        InputStream in1=TestPath.class
                                .getClassLoader()
                                .getResourceAsStream("a.txt");


        URL url1=TestPath.class
                         .getClassLoader()
                         .getResource("a.txt");


        InputStream in2=TestPath.class
                                .getResourceAsStream("a.txt");

        URL url2=TestPath.class
                         .getResource("a.txt");

    }

}
